3.1.9 \(\int -\csc ^2(e+f x) \, dx\) [9]

Optimal. Leaf size=10 \[ \frac {\cot (e+f x)}{f} \]

[Out]

cot(f*x+e)/f

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3852, 8} \begin {gather*} \frac {\cot (e+f x)}{f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[-Csc[e + f*x]^2,x]

[Out]

Cot[e + f*x]/f

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3852

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rubi steps

\begin {align*} \int -\csc ^2(e+f x) \, dx &=\frac {\text {Subst}(\int 1 \, dx,x,\cot (e+f x))}{f}\\ &=\frac {\cot (e+f x)}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 10, normalized size = 1.00 \begin {gather*} \frac {\cot (e+f x)}{f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[-Csc[e + f*x]^2,x]

[Out]

Cot[e + f*x]/f

________________________________________________________________________________________

Maple [A]
time = 0.09, size = 11, normalized size = 1.10

method result size
derivativedivides \(\frac {\cot \left (f x +e \right )}{f}\) \(11\)
default \(\frac {\cot \left (f x +e \right )}{f}\) \(11\)
risch \(\frac {2 i}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )}\) \(20\)
norman \(\frac {\frac {1}{2 f}-\frac {\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )}{2 f}}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )}\) \(35\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-csc(f*x+e)^2,x,method=_RETURNVERBOSE)

[Out]

cot(f*x+e)/f

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 13, normalized size = 1.30 \begin {gather*} \frac {1}{f \tan \left (f x + e\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)^2,x, algorithm="maxima")

[Out]

1/(f*tan(f*x + e))

________________________________________________________________________________________

Fricas [A]
time = 0.36, size = 20, normalized size = 2.00 \begin {gather*} \frac {\cos \left (f x + e\right )}{f \sin \left (f x + e\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)^2,x, algorithm="fricas")

[Out]

cos(f*x + e)/(f*sin(f*x + e))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \csc ^{2}{\left (e + f x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)**2,x)

[Out]

-Integral(csc(e + f*x)**2, x)

________________________________________________________________________________________

Giac [A]
time = 0.54, size = 13, normalized size = 1.30 \begin {gather*} \frac {1}{f \tan \left (f x + e\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)^2,x, algorithm="giac")

[Out]

1/(f*tan(f*x + e))

________________________________________________________________________________________

Mupad [B]
time = 13.18, size = 10, normalized size = 1.00 \begin {gather*} \frac {\mathrm {cot}\left (e+f\,x\right )}{f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/sin(e + f*x)^2,x)

[Out]

cot(e + f*x)/f

________________________________________________________________________________________